package net.gooduo.spring_boot_template.exception;

import lombok.Getter;

@Getter
public enum HttpExceptionEnum {
    WRONG_USERNAME_OR_PASSWORD(1, "用户名或密码错误"),
    APP_EXISTS(2, "应用已存在"),
    PLEASE_LOGIN(3, "请先登录"),
    OWNER_UNIT_EXISTS(4, "业主单位已存在"),

    FAIL(1000, "操作失败");

    private Integer code;
    private String msg;
    HttpExceptionEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
